package com.xj.sbd.login.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RefreshScope
@RestController
public class HelloLoginController {
    @Value("${login.user.ver}")
    private String ver;
    @RequestMapping("/ver")
    public String isVer(){
        return ver + " 夏迹.com@ login# ..";
    }

    @RequestMapping("/")
    public String helloLogin(){
        return "/: 夏迹.com@ login# ..";
    }


    @RequestMapping("/login")
    public String isLogin(){
        return "/login: I am 夏迹.com@ login# ..";
    }

}
